﻿<!DOCTYPE html>
<html lang="en">
<#include "../include/resource-head.html"/>
<body>
<div class="main-container">
    <div class="page-content">
        <div class="col-xs-12">
            <div class="row-fluid">
                <div class="widget-box">
                    <#--<div class="widget-header widget-header-blue widget-header-flat">
                        <h4 class="lighter">
                            <i class="icon-edit"></i>用户信息
                        </h4>
                    </div>-->
                    <div class="widget-body">
                        <div class="widget-main">
                            <div class="step-content row-fluid position-relative clearfix">
                                <form class="form-horizontal m-t"
                                      action="${basePath}/admin/userapply/update" method="post"
                                      enctype="multipart/form-data">
                                    <div class="col-xs-6 ">
                                        <input type="hidden" name="id" value="${userapply.id}">
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">代理账号号码：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.agent!}"
                                                       name="agent" required
                                                       class="form-control" type="text">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">货币：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.huobi!}" class="form-control" type="text"
                                                       readonly>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">账户类型：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="zhanghuleixing">
                                                    <option value="标准型账户（固定)"
                                                            <#if userapply.zhanghuleixing! = '标准型账户（固定）' >selected</#if>>
                                                        标准型账户（固定）
                                                    </option>
                                                    <option value="标准型账户（浮动）"
                                                            <#if userapply.zhanghuleixing! = '标准型账户（浮动）' >selected</#if>>
                                                        标准型账户（浮动）
                                                    </option>
                                                    <option value="机构型账户"
                                                            <#if userapply.zhanghuleixing! = '机构型账户' >selected</#if>>
                                                        机构型账户
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">预计初始存款：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.deposit!}" required class="form-control"
                                                       name="deposit"
                                                       type="text">
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">客户类型：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="client">
                                                    <option value="individual"
                                                            <#if userapply.client! = 'individual' >selected</#if>>
                                                        个人
                                                    </option>
                                                    <option value="joint"
                                                            <#if userapply.client! = 'joint' >selected</#if>>联合
                                                    </option>
                                                    <option value="corporate"
                                                            <#if userapply.client! = 'corporate' >selected</#if>>
                                                        公司
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">居住城市：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.city!}" name="city" required
                                                       class="form-control">
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">国籍：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.nationlity!}" name="nationlity" required
                                                       class="form-control">
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">性别：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="sex">
                                                    <option value="male" <#if userapply.sex! = 'male' >selected</#if>>
                                                        男
                                                    </option>
                                                    <option value="female"
                                                            <#if userapply.sex! = 'female' >selected</#if>>女
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">姓名：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.username!}" type="text" required
                                                       name="username"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">证件号：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.idcard!}" type="text" required name="idcard"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">证件正反面：</label>
                                            <div class="col-xs-8">
                                            <#if userapply.houseimg1?? >
                                                <#list userapply.houseimg1?split("#") as item >
                                                    <#if item!?length gt 0>
                                                        <img src="${basePath}/upload/${item!}" width="300px"
                                                             height="200px">
                                                        <br/>
                                                    </#if>

                                                </#list>
                                            </#if>

                                                <input name="img" type="file" multiple>
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">出生日期：</label>
                                            <div class="col-xs-2">
                                                <input value="${userapply.year!}" type="text" required name="year"
                                                       class="form-control">
                                            </div>
                                            <div class="col-xs-2">
                                                <input value="${userapply.month! }" type="text" required name="month"
                                                       class="form-control">
                                            </div>
                                            <div class="col-xs-2">
                                                <input value="${ userapply.day!}" type="text" required name="day"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">婚姻状况：</label>
                                            <div class="col-xs-4">
                                                <select class="form-control" name="marital">
                                                    <option value="未结婚" <#if userapply.marital! = '未结婚' >selected</#if>>
                                                        未结婚
                                                    </option>
                                                    <option value="已结婚" <#if userapply.marital! = '已结婚' >selected</#if>>
                                                        已结婚
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label"> 电子邮件：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.email!}" type="text" required name="email"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">手机号码：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.phone!}" type="text" required name="phone"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">传真：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.fax!}" type="text" required name="fax"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">住宅地址：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.address!}" type="text" required name="address"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">邮寄地址：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.postaddress!}" type="text" required
                                                       name="postaddress"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">省市：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.province!}" type="text" required
                                                       name="province"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">邮编：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.postcode!}" type="text" required
                                                       name="postcode"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">工作状况：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="employment">
                                                    <option value="职员"<#if userapply.employment! = '职员' >selected</#if>>
                                                        职员
                                                    </option>
                                                    <option value="个体工商业主"
                                                            <#if userapply.employment! = '个体工商业主' >selected</#if>>
                                                        个体工商业主
                                                    </option>
                                                    <option value="私企业主"
                                                            <#if userapply.employment! = '私企业主' >selected</#if>>私企业主
                                                    </option>
                                                    <option value="其他"<#if userapply.employment! = '其他' >selected</#if>>
                                                        其他
                                                    </option>
                                                </select>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">公司名称：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.companyname!}" type="text" required
                                                       name="companyname"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">公司地址：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.companyaddress!}" type="text" required
                                                       name="companyaddress"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-xs-6 ">
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">业务性质：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.naturebusiness!}" type="text" required
                                                       name="naturebusiness"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">职位：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.position!}" type="text" required
                                                       name="position"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">政府部门官员职位：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.relationsNote!}" type="text" required
                                                       name="relationsNote"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">收入来源：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="income">
                                                    <option value="工资" <#if userapply.income! = '工资' >selected</#if>>
                                                        工资
                                                    </option>
                                                    <option value="投资分红"<#if userapply.income! = '投资分红' >selected</#if>>
                                                        投资分红
                                                    </option>
                                                    <option value="其他" <#if userapply.income! = '其他' >selected</#if>>
                                                        其他
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">年收入或盈利（美元）：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="profit">
                                                    <option value="10万以下"
                                                            <#if userapply.profit! = '10万以下' >selected</#if>>10万以下
                                                    </option>
                                                    <option value="10-50万"
                                                            <#if userapply.profit! = '10-50万' >selected</#if>>10-50万
                                                    </option>
                                                    <option value="50-100万"
                                                            <#if userapply.profit! = '50-100万' >selected</#if>>
                                                        50-100万
                                                    </option>
                                                    <option value="100万以上"
                                                            <#if userapply.profit! = '100万以上' >selected</#if>>100万以上
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">净资产（美元）：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="assets">
                                                    <option value="10万以下"
                                                            <#if userapply.assets! = '10万以下' >selected</#if>>10万以下
                                                    </option>
                                                    <option value="10-50万"
                                                            <#if userapply.assets! = '10-50万' >selected</#if>>10-50万
                                                    </option>
                                                    <option value="50-100万"
                                                            <#if userapply.assets! = '50-100万' >selected</#if>>
                                                        50-100万
                                                    </option>
                                                    <option value="100万以上"
                                                            <#if userapply.assets! = '100万以上' >selected</#if>>100万以上
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">了解交易杠杆衍生性商品所涉及的风险：</label>
                                            <div class="col-xs-8">
                                                <select class="form-control" name="risk">
                                                    <option value="是" <#if userapply.risk! = '是' >selected</#if>>是
                                                    </option>
                                                    <option value="否" <#if userapply.risk! = '否' >selected</#if>>否
                                                    </option>
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">银行名称：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.bankname!}" type="text" required
                                                       name="bankname"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">所属支行：</label>
                                            <div class="col-xs-2">
                                                <input value="${userapply.bankaddress!}" type="text" required
                                                       name="bankaddress"
                                                       class="form-control">
                                            </div>
                                            <div class="col-xs-3">
                                                <input value="${userapply.bankaddress2!}" type="text" required
                                                       name="bankaddress2"
                                                       class="form-control">
                                            </div>
                                            <div class="col-xs-3">
                                                <input value="${userapply.bankaddress3!}" type="text" required
                                                       name="bankaddress3"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">账户持有人姓名：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.accountholder!}" type="text" required
                                                       name="accountholder"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">国际汇款代码：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.swift!}" type="text" required name="swift"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">银行账号：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.accountcode!}" type="text" required
                                                       name="accountcode"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">Forex：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.forxselect!}" type="text" required
                                                       name="forxselect"
                                                       class="form-control">
                                            </div>
                                        </div>


                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">CFDs：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.cfdsselect!}" type="text" required
                                                       name="cfdsselect"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">大宗商品：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.commoditiesselect!}" type="text" required
                                                       name="commoditiesselect"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">期货/期权：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.futuresselect!}" type="text" required
                                                       name="futuresselect"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">债券/股票：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.shareselect!}" type="text" required
                                                       name="shareselect"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label"> 通过渠道：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.hearus!}" type="text" required name="hearus"
                                                       class="form-control">
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">模拟账户：</label>
                                            <div class="col-xs-8">
                                                <input value="${userapply.demotext!}" type="text" required
                                                       name="demotext"
                                                       class="form-control">
                                            </div>
                                        </div>

                                    <#if userapply.status == '审核通过' && sessionAuth?? && sessionAuth?seq_contains("verifyApply")>
                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">MT4账户：</label>
                                            <div class="col-xs-8">
                                                <input type="text" value="${userapply.mt4account!}" readonly
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">MT4密码：</label>
                                            <div class="col-xs-8">
                                                <input name="mt4pwd" type="text" value="${userapply.mt4pwd!}"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">只读密码：</label>
                                            <div class="col-xs-8">
                                                <input name="readpwd" type="text" value="${userapply.readpwd!}"
                                                       class="form-control">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label class="col-xs-3 control-label">交易杠杆：</label>
                                            <div class="col-xs-8">
                                                <input name="lever" type="text" value="${userapply.lever!}"
                                                       class="form-control">
                                            </div>
                                        </div>
                                    </#if>
                                        <div class="form-group">
                                            <div class="col-xs-8 col-xs-offset-3">
                                                <button class="btn btn-primary" type="submit">提交</button>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
<#include "../include/common-refresh.html"/>
<#include "../include/common-back.html"/>
</body>
</html>

